package com.mlming.springboot.service;

import com.github.pagehelper.PageInfo;
import com.mlming.springboot.vo.OrderVo;
import com.mlming.springboot.vo.ResponseVo;

import java.net.InetAddress;

public interface OrderService {
    /**
     * 新建订单
     */
    ResponseVo<OrderVo> createOrder(Integer userId,Integer shippingId);

    /**
     * 获取订单列表
     */
    ResponseVo<PageInfo> getOrderList(Integer userId, Integer pageSize, Integer pageNum);

    /**
     * 获取订单详情
     */
    ResponseVo<OrderVo> getOrderDetail(Integer userId,Long orderNo);

    /**
     * 取消订单
     */
    ResponseVo cancelOrder(Integer userId,Long orderNo);

    /**
     * 设置订单为[已支付]状态
     */
    void paidOrder(Long orderNo);
}
